package com.tanger.es.inner;

import com.tanger.es.GoodsActivity;
import com.tanger.es.GoodsCategory;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @Description 商品类
 * @Author Hchenbin
 * @Date 2023-12-08 16:20
 * @Version 1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Api(value = "Goods", tags= "商品类")
public class Goods implements Serializable {

    private Long id;
    private String name;
    private String pinyinInitials;
    private Double price;
    //简介
    private String synopsis;
    private String remark;
    //商品图片集合
    private List<String> urls;
    private GoodsCategory category;
    private List<GoodsActivity> activitys;
    //经纬度
//    @GeoPointField
//    private String  location;
}
